﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TecBaseObjects.Objects {
    public class ProjectContactObject {

        #region Members
        #endregion

        #region Constructor

        public ProjectContactObject() {

        }

        #endregion

        #region Properties

        public Boolean Selected {
            get;
            set;
        }

        public int ProjectID {
            get;
            set;
        }

        public int ContactID {
            get;
            set;
        }

        public Boolean IsOrganisation {
            get;
            set;
        }

        public string Name1 {
            get;
            set;
        }

        public string Name2 {
            get;
            set;
        }

        public byte Sex {
            get;
            set;
        }

        public int ContactTypeID {
            get;
            set;
        }

        public string ContactType {
            get;
            set;
        }

        public string AddressType {
            get;
            set;
        }

        public string LKZ {
            get;
            set;
        }

        public string Plz {
            get;
            set;
        }

        public string Ort {
            get;
            set;
        }

        public string Straße {
            get;
            set;
        }

        public string Telefon {
            get;
            set;
        }

        public string Fax {
            get;
            set;
        }

        public string Mobil {
            get;
            set;
        }

        public string EMail {
            get;
            set;
        }

        public string VATRegNo {
            get;
            set;
        }

        public string Titel1 {
            get;
            set;
        }

        public string Titel2 {
            get;
            set;
        }

        public string Titel3 {
            get;
            set;
        }

        #endregion

        #region Functions

        public string GetSalutation() {
            string ret = "Herr";
            if(this.Sex == 2) {
                ret = "Frau";
            }
            if(this.Sex == 3) {
                ret = "Firma";
            }
            return ret;
        }

        #endregion

    }
}
